package com.ziyun.erp.modules.member.service;

import com.baomidou.mybatisplus.service.IService;
import io.renren.common.utils.PageUtils;
import com.ziyun.erp.modules.member.entity.UserShareEntity;

import java.math.BigDecimal;
import java.util.Map;

/**
 * 用户分享家信息表
 *
 * @author guizhao
 * @email ...
 * @date 2018-08-29 10:59:35
 */
public interface UserShareService extends IService<UserShareEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void reject(BigDecimal amount, Integer memberId);

    void pay(BigDecimal amount, Integer memberId);

    boolean updateCommissionAdd(Integer memberId, BigDecimal commission, BigDecimal usableCommission);

    boolean updateCommissionThawing(Integer memberId, BigDecimal commission, BigDecimal usableCommission);
}

